<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Declaration of love</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<style type="text/css">
		@font-face {
			font-family: digit;
			src: url('digital-7_mono.ttf') format("truetype");
		}
	</style>
	<link href="css/default.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/garden.js"></script>
    <script type="text/javascript" src="js/functions.js"></script>
</head>

<body>
<div id="mainDiv">
  <div id="content">
    <div id="code"> 
      <div align="center"><span class="comments">亲爱的琴</span><br />
        <span class="comments"></span><br />
        <span class="comments">2014年2月14日，我回识了你</span><br />
        <span class="comments"> 蓦然间，心神安宁</span><br />
        <span class="comments"></span><br />
        <span class="comments"> 2014年3月10日，我第一次告诉你</span><br />
        <span class="comments"> 我爱你</span><br />
        <span class="comments"></span><br />
        <span class="comments"></span><br />
        <span class="comments"> 2014年4月4日，你来到我的面前</span><br />
        <span class="comments"> 幸运的是，你成了我的女朋友</span><br />
        <span class="comments"></span><br />
        <span class="comments"> 从爱你时起，我每天都会想念你</span><br />
        <span class="comments"> 期待着每一次见面</span><br />
        <span class="comments"> 想念在一起的每一天</span><br />
        <span class="comments"></span><br />
        <span class="comments"> 我会用我笨拙的行动</span><br />
        <span class="comments"> 去证明我对你的爱，希望不要嫌弃</span><br />
        <span class="comments"></span><br />
        <span class="comments">亲爱的宝贝</span><br />
        <span class="comments"> 希望我们能一起携手</span><br />
        <span class="comments"> 勇敢地面对困难，坚定地走向未来</span><br />
        <span class="comments"></span><br />
        <span class="comments">亲爱的宝贝</span><br />
        <span class="comments">谢谢你每次在我惹你生气的时候能轻易地原谅我</span><br />
        <span class="comments"></span><br />
        <span class="comments"> 现在的我也许还不是很好</span><br />
        <span class="comments"> 但是我想努力给你一个承诺</span><br />
        <span class="comments"></span><br />
        <span class="comments"> 爱你，</span><br />
        <span class="comments"> 执子之手，与子偕老</span><br />
        <span class="comments"> </span><br />
        <span class="say"><span class="space"></span> -- 爱你的Vo</span> </div>
    </div>
    <div id="loveHeart">
      <canvas id="garden"></canvas>
      <div id="words">
        <div id="messages"> Qin, I have fallen in love with you for
          <div id="elapseClock"></div>
        </div>
        <div id="loveu"> .  Love u forever and ever.<br/>
          <div class="signature">- Your Vo </div>
        </div>
      </div>
    </div>
  </div>
  <div id="copyright"> Produce by vo
    <br />
    <span class="comments"></span><br />
    Copyright © 2014 <a href='http://hdz-love-ytm.com'>www.baidu.com</a> 2009-2014 </div>
</div>

<script type="text/javascript">
		var offsetX = $("#loveHeart").width() / 2;
		var offsetY = $("#loveHeart").height() / 2 - 55;
		var together = new Date();
		together.setFullYear(2014, 1, 14);
		together.setHours(18);
		together.setMinutes(18);
		together.setSeconds(18);
		together.setMilliseconds(0);
		
		if (!document.createElement('canvas').getContext) {
			var msg = document.createElement("div");
			msg.id = "errorMsg";
			msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+"; 
			document.body.appendChild(msg);
			$("#code").css("display", "none")
			$("#copyright").css("position", "absolute");
			$("#copyright").css("bottom", "10px");
		    document.execCommand("stop");
		} else {
			setTimeout(function () {
				startHeartAnimation();
			}, 5000);

			timeElapse(together);
			setInterval(function () {
				timeElapse(together);
			}, 500);

			adjustCodePosition();
			$("#code").typewriter();
		}
	</script>
</body>
</html>
